//package com.example.prison.controller;
//
//import com.example.prison.config.Response;
//import com.example.prison.service.ExitInfoService;
//import com.example.prison.service.SystemLogService;
//import com.example.prison.util.APIUtil;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.v3.oas.annotations.Parameter;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//
//@Slf4j
//@Api("退出时间")
//@RestController
//@RequestMapping("/api")
//public class ExitInfoController {
//
//    @Autowired
//    private ExitInfoService exitInfoService;
//
//    @Autowired
//    private SystemLogService systemLogService;
//
//    @ApiOperation("获取设备状态log")
//    @PostMapping("/getLog")
//    public Response<?> getLog(@Parameter(description = "ip")@RequestParam(value = "ip") String ip,
//                              @Parameter(description = "post")@RequestParam(value = "post") Integer post) {
//
//        String logstr = APIUtil.getStatusLog(ip,post);
////        log.info("获取设备状态log");
//        return Response.success(logstr);
//    }
//
//    @ApiOperation("刷新退出时间")
//    @PostMapping("/updateExitTime")
//    public Response<?> updateExitTime(@Parameter(description = "退出时间") @RequestParam(value = "exitTime") String exitTime) {
//        log.info("刷新退出时间");
//        systemLogService.add("退出系统");
//        exitInfoService.updateExit(exitTime);
//        return Response.success("退出系统！");
//    }
//
//}
